﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Top.ascx.cs" Inherits="Control_Top" %>
<div id="top">        	
  <div id="top_menu">
<ul>
            	<li><a href="index.aspx" target="_blank">超凡首页</a></li>
                <li>|</li>
                <li><a href="javascript:void(0)" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.whcfzs.com');" >设为首页</a></li>
                <li>|</li>
                <li><a href="javascript:void(0)" onclick="AddFavorite('www.whcfzs.com',document.title)">加入收藏</a></li>              
            </ul>
        </div>
        
        <div id="top_companyName"><img src="images/companyName.png" alt="公司名称" width="201" longdesc="http://www.whcfzs.com" onload="fixPNG(this)" /></div>
</div>
<script language="javascript" type="text/javascript">
/**   
 *    
 * @param {} sURL 收藏链接地址   
 * @param {} sTitle 收藏标题   
 */   

function AddFavorite(sURL, sTitle) {   
    try {   
        window.external.addFavorite(sURL, sTitle);   
    } catch (e) {   
        try {   
            window.sidebar.addPanel(sTitle, sURL, "");   
        } catch (e) {   
            alert("加入收藏失败，请使用Ctrl+D进行添加");   
        }   
    }   
} 
</script>
<script type="text/javascript">
function fixPNG(myImage)
 {     
    var arVersion = navigator.appVersion.split("MSIE");     
    var version = parseFloat(arVersion[1]);      
    if ((version >= 5.5) && (version < 7) && (document.body.filters))     
    {         
        var imgID = (myImage.id) ? "id='" + myImage.id + "' " : "";         
        var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : "";         
        var imgTitle = (myImage.title) ? "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' ";         
        var imgStyle = "display:inline-block;" + myImage.style.cssText;         
        var strNewHTML = "<span " + imgID + imgClass + imgTitle+" style=\"" + "width:" + myImage.width+ "px; height:" + myImage.height+ "px;" + imgStyle + ";"+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"+"(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>";
        myImage.outerHTML = strNewHTML;    
     }
}  
</script>